/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.system.service;

import java.util.List;

import iaas.service.IBaseService;

import org.springframework.stereotype.Component;

import com.wealth.system.entity.Permission;
import com.wealth.system.entity.User;
import com.wealth.system.vo.Tree;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Component
public interface IPermissionService extends IBaseService<Permission>{
	
	/** 企业+状态 */
	public List<Permission> getPermissionByCorpIdAndStatus(Long corpid,Integer status) throws Exception;
	
	/** 企业+父节点+资源类型+状态 */
	public List<Permission> getPermissionByCorpIdAndPidAndTypeAndStatus(Long corpid,Long pid, Integer type, Integer status) throws Exception;
	
	/**  
	 * 根据用户查询树形菜单列表 , 菜单数据库生成
	 * create by  chan on 2016-09-01
	 */
	public List<Tree> getTree(User user )  throws Exception ;
	
}
